package com.work.mybatis.handler;

import com.work.mybatis.handler.ParameterMapping;
import com.work.mybatis.mapper.TokenHandler;

import java.util.ArrayList;
import java.util.List;

public class ParameterMappingTokenHandler implements TokenHandler {
    private List<ParameterMapping> parameterMappings = new ArrayList<ParameterMapping>();

    @Override
    public String handleToken(String content) {
        parameterMappings.add(new ParameterMapping(content));
        return "?";
    }
     public List<ParameterMapping> getParameterMappings() {

        return parameterMappings;
    }

}
